<div>
  <a href="/help/{$ controller.contextHelpUrl $}" target="_blank"
     class="pull-right">
    <i class="glyphicon glyphicon-question-sign input-append"></i>
  </a>

  <form class="pull-right client-search-box">
    <div class="form-group">
      <div class="input-group">
        <input id="client_query" autocomplete="off"
               grr-disable-if-no-trait="search_clients_action_enabled"
               type="text" name="q" class="form-control search-query"
               placeholder="Search Box" ng-model="controller.query"
               ng-keypress="$event.which == 13 && controller.submitQuery()"
               uib-typeahead="label for label in controller.labels | filter:$viewValue | limitTo:8"
               typeahead-min-length="3"
               typeahead-focus-first="false"
               typeahead-template-url="/static/angular-components/core/typeahead-match.html"
        />
        <span class="input-group-btn">
          <button id="client_query_submit"
                  type="button"
                  class="btn btn-default search-query"
                  ng-click="controller.submitQuery()">
            <span class="glyphicon glyphicon-search"></span>
          </button>
        </span>
      </div>
    </div>
  </form>
</div>
